home *** CD-ROM | disk | FTP | other *** search
/ Programming an RTS Game with Direct3D / Programming an RTS Game with Direct3D.iso / Examples / Chapter 5 / Example 5.3 / object.h < prev   
Encoding:
C/C++ Source or Header  |  2006-06-29  |  592 b   |  33 lines

  1. #ifndef RTS_OBJECT
  2. #define RTS_OBJECT
  3.  
  4. #include <d3dx9.h>
  5. #include <vector>
  6. #include "debug.h"
  7. #include "mesh.h"
  8.  
  9. HRESULT LoadObjectResources(IDirect3DDevice9* Device);
  10. void UnloadObjectResources();
  11.  
  12. #define DRAGON 0
  13. #define BOB 1
  14. #define RING 2
  15.  
  16. class OBJECT{
  17.     public:
  18.         OBJECT();
  19.         OBJECT(int t, D3DXVECTOR3 pos, D3DXVECTOR3 rot, D3DXVECTOR3 sca);
  20.         void Render();
  21.         void RenderBoundingVolume(int typ);
  22.  
  23.         MESHINSTANCE m_meshInstance;
  24.         int m_type;
  25.         std::string m_name;
  26.  
  27.         BBOX m_BBox;
  28.         BSPHERE m_BSphere;
  29.         ID3DXMesh *m_boxMesh, *m_sphereMesh;
  30. };
  31.  
  32.  
  33. #endif